home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 1.9 KB | 81 lines | [TEXT/MPS ] |
- #
- # CWBuildAllSOM [NoExamples] [NoInternet]
- #
- # Builds all SOM files. This is meant to be used for CodeWarrior IDE builds only.
-
- if "{ODF}" == ""
- Beep
- Beep
- Echo "### CWBuildAllSOM"
- Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)."
- Echo "### Please do so before continuing. Those files are located in the 'Getting Started'"
- Echo "### folder. Don't forget to relaunch MPW (or ToolServer)."
- exit
- end
-
- Set Examples 1
- Set Internet 1
-
- For item in {Parameters}
- if {item} == NoExamples
- Set Examples 0
- Else If {item} == "NoInternet"
- Set Internet 0
- else
- Echo "CWBuildSOM [NoExamples] [NoInternet]"
- exit
- end
- End
-
- # ----- Sanity checking for Cyberdog
- #
-
- If {Internet} == 1
- If ¬ "{FWCyberdogIncludes}"
- Echo "### CWBuildAllSOM"
- Echo "### Can’t find the Cyberdog SDK. You must install the UserStartup•ODF-Internet"
- Echo "### (or UserStartupTS•ODF-Internet for ToolServer) before building."
- Echo "### Please do so before continuing. Those files are located in the "
- Echo "### “Getting Started” folder. Don't forget to relaunch MPW (or ToolServer)."
- Echo "### If you don't want to build for Cyberdog, use “CWBuildAllSOM NoInternet”."
- Exit
- End
- End
-
- Echo "# `Date -t` ----- Starting SOM compiler build."
-
- # ----- Build xh, xih for shared library
- #
- "{ODF}ODFLibrary:CWBuildSOM"
-
- # ----- Build xh, xih three layers
- #
- "{ODF}Found:Layer:CWBuildSOM"
- "{ODF}OS:Layer:CWBuildSOM"
- "{ODF}Framewrk:Layer:CWBuildSOM"
-
- # ----- Build xh, xih for Internet layer
- #
- if {Internet} == 1
- "{ODF}Internet:CWBuildSOM"
- End
-
- # ----- Build xh, xih for each samples
- #
- if {Examples} == 1
- For example In Button Clock ColorExtension Container Draw Embed Form Hello Nothing Table
- "{ODFDev}{Example}:Sources:CWBuildSOM"
- End
- End
-
- # ----- Build xh, xih for each internet samples
- #
- If {Internet} == 1
- For example In CyberStarter Bitmap
- "{ODFDev}{Example}:Sources:CWBuildSOM"
- End
- End
-
- Echo "# `Date -t` ----- Finished SOM compiler build."
-
-